package rottenTomatoes;


import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;

import org.apache.http.client.utils.URIBuilder;


/**
 * HTTP Client mockup used for testing purposes
 * 
 * @author <a href="mailto:tambug@gmail.com">Giordano Tamburrelli</a>
 * 
 * @version 1.0
 **/
public class NetHttpClientMockUp implements NetHttpClientInterface {

	private String response = "{}";

	public void setResponse(String response) {
		this.response = response;
	}

	public String get(URI uri) {
		return response;
	}

	public URI buildURI(String scheme, String host, String path, HashMap<String, String> params) throws URISyntaxException {
		URIBuilder builder = new URIBuilder();
		return builder.build();
	}
}
